<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<div>
<ol contenteditable id=sample>
<li>foo</li>
</ol>
<div id="log"></div>
<script>
test(function() {
    window.getSelection().selectAllChildren(document.getElementById('sample'));
    document.execCommand('insertOrderedList');
}, 'insertOrderedList should not crash with uneditable parent');
</script>
